/**
 * Copyright (c) 2010 Moogene
 * All rights reserved
 *
 * This software is the confidential and proprietary information of Moogene.
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into
 * with Moogene
 */
package com.moogene.android.engine.action;

/**
 * @author Song, jiawei
 *
 */
public class ActKeyEvent {
	public final static int TYPE_INVALID = -1;
	
	public final static int TYPE_KEY_DOWN = 0;
	public final static int TYPE_KEY_UP = 1;
	public final static int TYPE_KEY_REPEAT = 2;
	
	// game key
	public static final int GK_UP         = 1;
	public static final int GK_UPRIGHT    = 1 << 1;
	public static final int GK_RIGHT      = 1 << 2;
	public static final int GK_DOWNRIGHT  = 1 << 3;
	public static final int GK_DOWN       = 1 << 4;
	public static final int GK_DOWNLEFT   = 1 << 5;
	public static final int GK_LEFT       = 1 << 6;
	public static final int GK_UPLEFT     = 1 << 7;
	public static final int GK_A          = 1 << 8;
	public static final int GK_B          = 1 << 9;
	public static final int GK_C          = 1 << 10;
	public static final int GK_D          = 1 << 11;
	public static final int GK_LEFT_SOFT  = 1 << 12;
	public static final int GK_RIGHT_SOFT = 1 << 13;
	
	private int mType;
	private int mGameKey;

	public void setUp(int type, int gameKey){
		mType = type;
		mGameKey = gameKey;
	}
	
	public int getType(){
		return mType;
	}
	
	public int getGameKey(){
		return mGameKey;
	}
}
